<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="UTF-8">
  <link rel="icon" href="/favicon.ico">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>个人博客</title>
  <style>
    #app-loading {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:#eee;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    #app-loading svg {
      width: 5rem;
      margin-bottom: 2rem;
      overflow: visible;
      transition: 0.3s ease;
    }

    #app-loading svg circle {
      fill: none;
      stroke: #171717;
      stroke-width: 12;
      stroke-dasharray: 160;
      stroke-dashoffset: 160;
      transform-origin: center;
      animation: circle_rotate 3s ease-in infinite;
    }

    @keyframes circle_rotate {
      0% {
        transform: rotate(0deg);
        stroke-dashoffset: 160;
      }

      100% {
        transform: rotate(360deg);
        stroke-dashoffset: -160;
      }
    }

    #app-loading p {
      font-family: sans-serif;
      font-size: 2rem;
      color: #171717;
      font-weight: 900;
      transition: 0.3s ease;
    }
  </style>
</head>

<body>
  <!-- 这个加载动画在 Vue 加载前就显示 -->
  <div id="app-loading">
    <svg viewbox='0 0 50 50'>
      <circle r='25' cx='25' cy='25'></circle>
    </svg>
    <p>LOADING</p>
  </div>
  <div id="app"></div>
  <script>
    // Vue 加载完成后移除加载动画
    // window.addEventListener('load', function () {
    //   const loadingEl = document.getElementById('app-loading')
    //   if (loadingEl) {
    //     loadingEl.remove()
    //   }
    // });
  </script>
  <script type="module" src="/src/main.js"></script>
</body>

</html>